from django.contrib import admin
from users.models import User, UserAddress, UserAvatar, Logo

# Register your models here.


@admin.register(User)
class UserAdmin(admin.ModelAdmin):
    list_display = [
        "pk",
        "username",
        "sex",
        "age",
        "mobile",
        "password",
        "last_login",
        "is_staff",
        "is_active",
        "is_superuser",
        "date_joined",
        "email",
    ]


@admin.register(UserAddress)
class UserAddressAdmin(admin.ModelAdmin):
    list_display = [
        "pk",
        "title",
        "address",
        "owner",
        "contactname",
        "add_time",
        "is_defult",
    ]


@admin.register(UserAvatar)
class UserAvatarAdmin(admin.ModelAdmin):
    list_display = ["pk", "owner", "avatar"]


@admin.register(Logo)
class LogoAdmin(admin.ModelAdmin):
    list_display = ["pk", "logo"]

